package com.globaldom.model;

import java.io.Serializable;
import java.util.Date;

import javax.jdo.annotations.Extension;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.NotPersistent;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

//@Configurable
@PersistenceCapable
public class Stats implements Serializable {

	/**
	 * 
	 */
	@NotPersistent
	private static final long serialVersionUID = 1L;

	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	@Extension(vendorName = "datanucleus", key = "gae.encoded-pk", value = "true")
	private String id;

	@Persistent
	private Integer statType;
	@Persistent
	private Long statParam;
	@Persistent
	private String countryParam;
	@Persistent
	private Long statValue;
	@Persistent
	private Date createDate;

	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Integer getStatType() {
		return statType;
	}

	public void setStatType(Integer statType) {
		this.statType = statType;
	}

	public Long getStatParam() {
		return statParam;
	}

	public void setStatParam(Long statParam) {
		this.statParam = statParam;
	}

	public Long getStatValue() {
		return statValue;
	}

	public void setStatValue(Long statValue) {
		this.statValue = statValue;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public String getCountryParam() {
		return countryParam;
	}

	public void setCountryParam(String countryParam) {
		this.countryParam = countryParam;
	}

	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append("Id: ").append(getId()).append(", ");
		return sb.toString();
	}
}
